//
//  HJGoodsAdressCell.m
//  Sneakers
//
//  Created by 胡光健 on 2017/9/25.
//  Copyright © 2017年 mac. All rights reserved.
//

#import "HJGoodsAdressCell.h"
#import "HJMineModel.h"

@implementation HJGoodsAdressCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    self.nameLabel.font = HJFontSize(mScreenWidth/414 *15);
    self.phone.font = HJFontSize(mScreenWidth/414 *15);
    self.address.font = HJFontSize(mScreenWidth/414 *15);
}


-(void)setMyModel:(HJMyAddressModel *)myModel {
    _myModel = myModel;
    
    self.nameLabel.text = myModel.name;
    self.address.text = [NSString stringWithFormat:@"%@%@",myModel.address, myModel.detail_address];
    self.phone.text = myModel.mobile;
    
    if ([myModel.is_default isEqual:@1]) {
        self.staute.hidden = NO;
    }else {
        self.staute.hidden =YES;
    }
}


@end
